/*
 * @Title Person.java
 * @Description
 * @Copyright Copyright(c) 2018
 * @Company com.lizhen
 * @author lizhen
 * @version 0.0.1
 */
package com.lizhen.core.function.ibatis.entity;

import com.google.gson.annotations.Since;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author lizhen
 */
@Entity
@Table(name = "person")
public class Person {
    @Since(1.0)
    private String name;
    @Since(1.1)
    private Integer age;

    public Person() {
    }

    public Person(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the age
     */
    public Integer getAge() {
        return age;
    }

    /**
     * @param age the age to set
     */
    public void setAge(Integer age) {
        this.age = age;
    }

}
